package se.webbzon.oschi01.json;

import java.io.Closeable;
import java.io.IOException;

import se.webbzon.oschi01.utils.Reader;

public abstract class JsonReader<S> implements Closeable, AutoCloseable, Reader<JsonType,S> {
		
	protected final Object lock;
	
	public JsonReader() {
		this(new Object());
	}
	
	public JsonReader(Object lock) {
		this.lock = lock;
	}
	
	/** Reads a single JSON type. **/
	public abstract JsonType read() throws IOException;
}
